//引用axios分支的request
import request from '../Util/request';
// 添加管理员请求
export const addAdminRequest = (data) => {
    return request.post("/addAdmin", data)
}
// 查询管理员请求
export const adminListRequest = () => {
    return request.get("/adminList")
}
//删除管理员
export const deleteAdminRequest = (adminName) => {
    return request.delete("/deleteAdmin", {
        params: {
            adminName,
        }
    })
}
//管理员登陆
export const loginRequest = (data) => {
    return request.post("/login", data)
}

//路由切换时权限校验请求
export const isLoginRequest = () => {
    return request.get("/isLogin")
}

//路由切换时权限校验请求
export const outLoginRequest = () => {
    return request.get("/outLogin")
}